package com.library.staff.util;

/**
 * 员工状态类别枚举类
 */
public enum StaffState {

	ENABLE("解禁", StaffState.ENABLE_STATE),
	FORBIDDEN("禁止", StaffState.FORBIDDEN_STATE);

	private final static boolean ENABLE_STATE = false;		//禁止
	private final static boolean FORBIDDEN_STATE = true;  //解禁

	private String name;
	private boolean state;

	StaffState(String name, boolean state) {
		this.name = name;
		this.state = state;
	}

	/**
	 * 获取状态类别名称
	 *
	 * @return
	 */
	public String getName() {
        return name;
    }

    /**
     * 获取状态类型
     *
     * @return
     */
    public boolean getState() {
        return state;
    }
}
